package com.easy.cms.material.model;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;

import java.util.Date;
import java.math.BigDecimal;

@Entity
public class OrderSub {
    @Id
    private Long id;
    private Long orderMainId;
    private BigDecimal subTotalAmount;
    private Integer quantity;
    private BigDecimal materialTotalAmount;
    private String orderSubNumber; // 子订单编号
    private Date createTime;
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrderMainId() {
        return orderMainId;
    }

    public void setOrderMainId(Long orderMainId) {
        this.orderMainId = orderMainId;
    }

    public BigDecimal getSubTotalAmount() {
        return subTotalAmount;
    }

    public void setSubTotalAmount(BigDecimal subTotalAmount) {
        this.subTotalAmount = subTotalAmount;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getMaterialTotalAmount() {
        return materialTotalAmount;
    }

    public void setMaterialTotalAmount(BigDecimal materialTotalAmount) {
        this.materialTotalAmount = materialTotalAmount;
    }

    public String getOrderSubNumber() {
        return orderSubNumber;
    }

    public void setOrderSubNumber(String orderSubNumber) {
        this.orderSubNumber = orderSubNumber;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}